package util;

import java.io.Serializable;

public class Student implements Study ,Serializable {
    String name;
    String grade;
	public Student(String name, String grade) {
		super();
		this.name = name;
		this.grade = grade;
	}
	public Student() {
		super();
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getGrade() {
		return grade;
	}
	public void setGrade(String grade) {
		this.grade = grade;
	}
	@Override
	public boolean equals(Object s) {
		if(this==s){
			return true;
		}
       if(((Student) s).getName().equals(this.name)&&((Student)s).getGrade().equals(this.grade)){
    	   return true;
       }else{
    	   return false;
       }
    }
	public void study() {
		// TODO Auto-generated method stub
		System.out.println("goodstudy");
	}
}
